package com.ycu.jk16.mall.util.assistdata;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
/**
 * 
 * @ClassName AssistOrder  
 * @Description TODO(Order协助类，协助对json数据的输出) 
 * @author 倪宗龙
 * @date 2018年12月21日 上午12:54:48  
 * @version V1.0
 */
public class AssistOrder {
	public String orderNo;
	public BigDecimal payment;
	public Integer paymentType;
	public String paymentTypeDesc;
	public Integer postage;
	public Integer status;
	public String statusDesc;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date paymentTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date sendTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date closeTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private List<AssistOrderItem> orderItemVoList;
	public String imageHost;
	public Integer shippingId;
	public String receiverName;
	public AssistShipping shippingVo;

	public AssistOrder() {
		super();
		paymentType = 1;
		paymentTypeDesc = "在线支付";
		postage = 0;
		status = 10;
		statusDesc = "已支付";
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public BigDecimal getPayment() {
		return payment;
	}

	public void setPayment(BigDecimal payment) {
		this.payment = payment;
	}

	public Integer getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(Integer paymentType) {
		this.paymentType = paymentType;
	}

	public String getPaymentTypeDesc() {
		return paymentTypeDesc;
	}

	public void setPaymentTypeDesc(String paymentTypeDesc) {
		this.paymentTypeDesc = paymentTypeDesc;
	}

	public Integer getPostage() {
		return postage;
	}

	public void setPostage(Integer postage) {
		this.postage = postage;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getStatusDesc() {
		return statusDesc;
	}

	public void setStatusDesc(String statusDesc) {
		this.statusDesc = statusDesc;
	}

	public Date getPaymentTime() {
		return paymentTime;
	}

	public void setPaymentTime(Date paymentTime) {
		this.paymentTime = paymentTime;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getCloseTime() {
		return closeTime;
	}

	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public List<AssistOrderItem> getOrderItems() {
		return orderItemVoList;
	}

	public void setOrderItems(List<AssistOrderItem> orderItems) {
		this.orderItemVoList = orderItems;
	}

	public String getImageHost() {
		return imageHost;
	}

	public void setImageHost(String imageHost) {
		this.imageHost = imageHost;
	}

	public Integer getShippingId() {
		return shippingId;
	}

	public void setShippingId(Integer shippingId) {
		this.shippingId = shippingId;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public AssistShipping getShippingVo() {
		return shippingVo;
	}

	public void setShippingVo(AssistShipping shippingVo) {
		this.shippingVo = shippingVo;
	}

	@Override
	public String toString() {
		return "AssistOrder [orderNo=" + orderNo + ", payment=" + payment + ", paymentType=" + paymentType
				+ ", paymentTypeDesc=" + paymentTypeDesc + ", postage=" + postage + ", status=" + status
				+ ", statusDesc=" + statusDesc + ", paymentTime=" + paymentTime + ", sendTime=" + sendTime
				+ ", endTime=" + endTime + ", closeTime=" + closeTime + ", createTime=" + createTime + ", orderItems="
				+ orderItemVoList + ", imageHost=" + imageHost + ", shippingId=" + shippingId + ", receiverName="
				+ receiverName + ", shippingVo=" + shippingVo + "]";
	}

}
